home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / 3d_lib.zip / TCONEM.BAT < prev    next >
DOS Batch File  |  1993-05-09  |  1KB  |  36 lines

  1. echo off
  2. REM Batch file to compile one source file and add to libraries
  3. REM for just one memory model.
  4. REM
  5. REM Usage is:
  6. REM
  7. REM         tconem <file> [t,s,c,m,l,h]
  8. REM
  9. REM where <file> is the source file, no extension (.c assumed), and
  10. REM the single letter parameter specifies the memory model as described below.
  11. REM
  12. REM Compile options are:
  13. REM  -a-           byte alignment
  14. REM  -C            nested comments on
  15. REM  -c            compile to OBJ (no link)
  16. REM  -f            floating point emulation
  17. REM  -I..\include  include files path
  18. REM  -K-           default char type unsigned
  19. REM  -L..\lib      library files path
  20. REM  -G            optimize for speed
  21. REM  -m?           memory model   ? = t for TINY
  22. REM                               ? = s for SMALL
  23. REM                               ? = c for COMPACT
  24. REM                               ? = m for MEDIUM
  25. REM                               ? = l for LARGE
  26. REM                               ? = h for HUGE
  27. REM  -p-           C calling convention
  28. REM  -r            user register variables
  29. REM  -w            display warnings
  30. REM
  31. REM  The memory model is defined by parameter %2, as defined above.
  32. REM  The file to be compiled is %1, with no extension.
  33. REM
  34. tcc -a- -C -c -f -I..\..\include -K -L..\..\lib -G -m%2 -p- -r -w %1
  35. tlib 3d%2 +-%1
  36.